package OOP.day09.homework.AnimalDemo03;

public class Chick extends Animal {
    //构造方法
    public Chick() {
    }

    public Chick(String name, int age, String color) {
        super(name, age, color);
    }

    //行为
    public void layEggs() {
        System.out.println("下蛋");
    }
    //重写eat方法
    @Override
    public void eat() {
        System.out.println("鸡吃米");
    }
}
